﻿using System.ComponentModel;
using System.Runtime.CompilerServices;
using SC2TV.Resources;

namespace SC2TV.ViewModel
{
    public class BaseViewModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            var handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }

        private readonly LocalizedStrings localized = new LocalizedStrings();
        public AppResources Text
        {
            get { return localized.LocalizedResources; }
        }
    }

    public class LocalizedStrings
    {
        private static AppResources _localizedResources = new AppResources();

        public AppResources LocalizedResources { get { return _localizedResources; } }
    }
}
